package zee.com.customviewexample.bean

/**
 *created by zee on 2020/10/14.
 *
 */
object TestPresenter {


    fun testListener(value: Int, onNest: () -> Unit={}, onError: () -> Unit = {}) {
        if (value > 10) {
            onNest.invoke()
            onError.invoke()
        } else {
            onError.invoke()
            onNest.invoke()
        }
    }
}